﻿#include "CPageCarouse.h"

CPageCarouse::CPageCarouse(const QString & name, CBaseCarouse * parent)
	:CBaseCarouse(name, parent)
{
	m_eCarouseType = enPageCarouse;
	((CBaseCarouse *)parent)->addChild(this);
	m_pItem->setIcon(QIcon(":/SmartControl/Resource/file.png"));
}

CPageCarouse::~CPageCarouse()
{
}

void CPageCarouse::addItem(SPageItem item)
{
	m_vecPageItem.push_back(item);
}

QVector<SPageItem> CPageCarouse::getPageItems()
{
	return m_vecPageItem;
}

void CPageCarouse::setPageItems(QVector<SPageItem> vecPageItems)
{
	m_vecPageItem = vecPageItems;
}
